﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace Adams.Admin.DataAccess.Home
{
    public static class Index
    {
        public static Adams.Admin.DataTransfer.Home.Index.PageLoad PageLoad()
        {
            var data = new Adams.Admin.DataTransfer.Home.Index.PageLoad();


            return data;
        }

        public static void DeleteLocation(int id)
        {
            DB.Run(@"
DELETE EidPrayers.Prayers
WHERE LocationID = @LocationID

DELETE EidPrayers.Locations
WHERE LocationID = @LocationID
", CommandType.Text,
                    DB.CreateParameter("@LocationID", id, SqlDbType.Int));
        }
    }
}
